/*
 * HomeServcieHolder.java
 * business
 *
 * Created by ChenTao on 2016/10/29.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 首页-客服电话-ViewHolder */
public class HomeServiceHolder extends ViewHolder {

    public RelativeLayout rootLayout;

    public TextView tvServiceNumber;

    @Override
    protected void initView(View rootView) {
        rootLayout = (RelativeLayout) rootView.findViewById(R.id.root_layout);
        tvServiceNumber = (TextView) rootView.findViewById(R.id.tv_server_number);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_home_service;
    }

    public String getServiceNumber() {
        return tvServiceNumber.getText().toString().trim();
    }
}
